package com.haopt.clock.controller;

import com.haopt.clock.dto.ResultDTO;
import com.haopt.clock.service.IntegralService;
import com.haopt.clock.vo.ReqPageVO;
import com.haopt.clock.vo.ResInteralDetailVO;
import com.haopt.clock.vo.ResPageVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author haopt
 * @version 1.0
 * @ClassName IntegralController
 * @Description TODO
 * @date 2021/3/22 13:35
 */
@RestController
@RequestMapping("/integral")
public class IntegralController {

    @Autowired
    private IntegralService integralService;

    @PostMapping("listOfPage")
    public ResultDTO<ResPageVO<ResInteralDetailVO>> listOfPage(@RequestBody ReqPageVO vo) {
        return integralService.listOfPage(vo);
    }
}
